var initAreaInfoSearchPage = function(){
	jQuery('#ligerTypeSearcher').ligerComboBox({
		data:areaTypeRenderData,
		valueField:'value',
		textField:'text',
		valueFieldID:'typeSearcher'
	});
};

var getAreaInfoSearchParams = function(){
	var areainfoBean = {};
	var temp;
	temp = jQuery('#nameSearcher').val();
	if(temp){
		areainfoBean.name = temp;
	}
	temp = jQuery('#pidSearcher').val();
	if(temp){
		areainfoBean.pid = temp;
	}
	temp = jQuery('#typeSearcher').val();
	if(temp){
		areainfoBean.type = temp;
	}
	return areainfoBean;
}

jQuery(function(){
	initAreaInfoSearchPage();
	jQuery('#searchAreaInfo').click(function(){
		areainfoManager.loadServerData(getAreaInfoSearchParams());
	});
});


